Repository navigation
Fix SQLite statement ownership - #237
Merged
Merged
Conversation
noise64
marked this pull request as ready for review
November 25, 2026 22:50
noise64
marked this pull request as draft
November 26, 2026 07:51
noise64
marked this pull request as ready for review
November 26, 2026 11:43
vigoo
approved these changes
Nov 26, 2026
vigoo
left a comment
Contributor
There was a problem hiding this comment.
Reviewed the statement-ownership delta against #231 at d3e9d83, with head 6a3310e. No blocking findings in correctness or maintainer assessment. Checked ownership/finalization, callback reentry guards, iterator invalidation, binding reuse, statistics, and the distinct deserialize/recovery contracts. Local native-source controls and shared Node 26.13.1 controls passed; exact-head CI also passed. This does not qualify current-head Golem consumer recovery or shipped artifacts.
noise64
changed the base branch from
fix-sqlite-value-contracts
to
node-26-target
November 27, 2026 12:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
deserialize()finalizes statements before attempting replacement, including later failure; recoveryrestoreDatabaseSync()preserves the connection, UDFs and idle statements/options, rejecting active execution/cursors before mutationreturn()without clearing a newer iterator's recovery guard; adds public lifetime, statistics, deserialize and asymmetric recovery regressionsd3e9d832without conflicts. The repair ignores hidden named-binding properties, preserves native bind-error messages and consumes throwing-UDF exceptions at theexec()boundary instead of leaking them into later failures; regressions cover get/all/iterate/run and reuse after failure. Regenerates four missing DTS entries for existing statement-test exportsdf908bf7(including maina57ed896) at4e0d9b0c, entirely automatically. All six ownership implementation/test files are byte-identical to published6a3310eb; the diff against the new base remains the original seven ownership-only files. No new behavior/design change or classification promotion is authored in this integrationNode compatibility
Actual #218 base
df908bf7→ candidate4e0d9b0c: classifications unchanged, 3200 runnable / 1299 known gaps, primary 3200/4499 (71.1%), full public 3200/9654 (33.1%), total 10794. SQLite 32 runnable / 27 known gaps / 117 total. Config/report are byte-identical to the new base and the prior #237 head. These are classification inventories, not a new-head full-suite pass. No vendored edits or classification promotions are included.Validation and limits
4e0d9b0c: SQLite runtime 18 passed, configured SQLite compatibility 32 passed / 107 ignored, process features 1 passed; preinit host-service denial (including SQLite open) and deferred-open/restored-filesystem controls 1 passed each; report currentness 1 passed, SQLite DTS 1 passed. All-target Clippy (-Dwarnings), all five skeleton Clippy lanes, fmt and diff checks exited 0; Cargo manifest warnings remain. Head/tree/clean state were checked before and after every command; generated runtime/compat SQLite native/JS bytes and runtime fixture match the candidate. Focused author self-review found no integration defect; direct integration assessment is COMPLETE/CLEAR, with hashes/source identities verified (nov27-237-4e0d9b0c-local-integration, rev2). Published head/base reconciliation is recorded in golem-review (nov27-237-4e0d9b0c-published-reconciliation, rev1), with zero open concerns and no new approval. Exact-head CI 46002953295 completed successfully: all 28 executed validation jobs passed, including runtime/Node/P3, stock/fork optimizer, build, quality and report lanes; publish/release jobs and separate Proof were skipped. No repair or rerun was needed. Prior-head checks and CI below remain historical6a3310eb: SQLite runtime 18 passed, configured SQLite compatibility 32 passed / 109 ignored; all-target build/Clippy (-Dwarnings), formatting, five skeleton Clippy lanes and dev-tool format/lint/TypeScript pass. Generated runtime/compat native and JS source bytes match that candidate. Report tests 37 passed / 1 generator ignored and SQLite DTS 1 passed preceded only the two-file UDF correction; their inputs are unchangedunknown error), repaired implementation 18 passed. The final fixture separately fails unchanged2fa14e2cwith a stale UDF sentinel instead of bind error 25, then passes with theexec()correction. Pinned Node 26.13.1 passes the full number-binding fixture and identical final lifetime prefix through all four excess-positional controls, not the runtime-specific iterator assertions. Missing DTS entries were independently reproduced, regenerated and normally rechecked2fa14e2cremain failures: statement suites 18 passed / 4 failed (expandedSQL, iterate, setReadBigInts, persistent options); named-parameter suites 2 passed / 1 failed (setter argument-name message). These were not rerun after the UDF-only correction and are not a full-suite pass or blanket parity claim. Earlier broader SQLite diagnostic 76 passed / 63 failed belongs to the pre-intrinsic-deserialize-fix source, not this candidate; TagStore/UDF-close and broader database/session/metadata gaps remain3a9c8ac96d90f7ba59765bcae4f458d2b1185daaand the included older4bece465SQLite implementation: both unchangedSqliteSnapshotAgentrecovery/replay tests and an added custom-snapshot control passed, requiring successful snapshot-loaded events. Controls cover idle handles/options, schema changes, UDF preservation, active cursor/callback refusal without mutation, replay and continued writes. The three tests reran with the older stale-return repair; those local runtime sequences were not added to the consumer assertions. Automatic typed snapshots still exclude statement objectsWASI_SDK_PATHskeleton-check qualifications remain; successful lanes used/opt/wasi-sdk6a3310eb: all 28 executed validation jobs passed; release/publish skipped. No manual rerun. This validates that prior candidate independently of upstream Fix SQLite prepare and value contracts [skip ci] #231's successful CI45802967730, not the latest integration